package com.cy.ppj.web.admin.bankma;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cy.ppj.model.PageBean;
import com.cy.ppj.model.query.bankma.BankmaCustomerListAdminQuery;
import com.cy.ppj.model.vo.admin.bank.BankmaCustomerListAdminVO;
import com.cy.ppj.service.bankma.BankmaCustomerService;
import com.cy.ppj.web.BaseController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * 后台-bankma马先生官网咨询客户管理
 *
 * @author tanyilin
 *
 * @create 2018年12月28日 下午2:19:16
 */
@Slf4j
@RestController
@RequestMapping("/admin/bankma/customer")
@Api(tags = "后台-bankma马先生官网咨询客户管理")
public class AdminBankmaCustomerController extends BaseController {

	@Autowired
    private BankmaCustomerService bankmaCustomerService;
	
	@ApiOperation("马先生官网咨询客户列表")
	@GetMapping("/list")
	public PageBean<BankmaCustomerListAdminVO> list(BankmaCustomerListAdminQuery query) {
		PageBean<BankmaCustomerListAdminVO> pageBean = bankmaCustomerService.selectBankmaCustomerListAdmin(query);
		return pageBean;
	}
	
}
